#ifndef MEDIAPLAY_H
#define MEDIAPLAY_H

#include <QMainWindow>
#include<QFileDialog>
#include<QMediaPlayer>
#include<QMediaPlaylist>
#include<QVideoWidget>
#include<QPaintEvent>
#include<QCloseEvent>

namespace Ui {
class mediaplay;
}

class mediaplay : public QMainWindow
{
    Q_OBJECT

public:
    explicit mediaplay(QWidget *parent = nullptr);
    ~mediaplay();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

private:
    Ui::mediaplay *ui;
    QMediaPlayer* player;
    QMediaPlaylist* list;
    QVideoWidget* playwidget;
protected:
    void paintEvent(QPaintEvent*);
    void closeEvent();
};

#endif // MEDIAPLAY_H
